home *** CD-ROM | disk | FTP | other *** search
- Path: news.nask.org.pl!usenet
- From: flssoft@blue.maloka.waw.pl (Grzegorz (FLS))
- Newsgroups: comp.lang.c++
- Subject: Re: fast find algoritm?
- Date: Wed, 03 Apr 1996 20:23:42 GMT
- Organization: Research and Academic Computer Network
- Message-ID: <4juj1r$kt8@bilbo.nask.org.pl>
- References: <Dp8wE7.8E3@cix.compulink.co.uk>
- NNTP-Posting-Host: s114.maloka.waw.pl
- X-Newsreader: Forte Free Agent v0.46
-
- setheridge@cix.compulink.co.uk ("Stephen Etheridge") wrote:
-
- >Does anyone have an search algoritm faster than a binary chop for the
- >following:
-
- >find a date from a sorted array of 1500 possible storage locations
-
- Hi Steve,
-
- Yes, there is an algorithm with cost O(1). Use a hash-table. If you
- use a good hash-function, you will have a fastest algorithm.
-
- Regards,
- Grzegorz.
-
- Grzegorz
-
- ``````````````````````````` Grzes vel Pysiak
- Ablue, pecte canem, canis est et permanet idem.
- Desunt cetera!
-
-